
<?php
include '../base/validateAdminLogin.php';
include '../class/MMysql.php';

$message_id= $_GET['message_id'];
$mysql = new MMysql();

$message = $mysql
    ->where(array('message_id'=>$message_id))
    ->select('message');
?>

<?php
include '../base/layout.php';
?>


<link href="../public/bootstrap-table/dist/bootstrap-table.css" rel="stylesheet" type="text/css" />
<script src="../public/bootstrap-table/dist/bootstrap-table.js"></script>

<style>
    .magin_left{
        margin-top: 20px;
        margin-left: 50px;
    }
</style>

<body>

<?php
include '../base/header.php';
?>

<section style="width: 100%;">

    <?php
    include '../base/sidemenu.php';
    ?>

    <aside class="content">

        <div style="margin-top: 20px;position: relative;">

            <div style="height: 20px;">

            </div>

            <span class="magin_left" style="font-size: 40px;">
                Requests Message
            </span>

            <div class="magin_left">
                <span class="user_info_span">
                  Full name
                </span>
                <?php
                echo '<input class="user_info_input" type="text" value="'.$message[0]['message_fullname'].'">';
                ?>

            </div>

            <div class="magin_left">
                <span class="user_info_span">
                   Email
                </span>
                <?php
                echo '<input class="user_info_input" type="text" value="'.$message[0]['message_email'].'">';
                ?>

            </div>

            <div class="magin_left">
                <span class="user_info_span">
                    Tel
                </span>
                <?php
                echo '<input class="user_info_input" type="text" value="'.$message[0]['message_tel'].'">';
                ?>

            </div>

            <div class="magin_left">
                <span class="user_info_span">
                   Wechat
                </span>
                <?php
                echo '<input class="user_info_input" type="text" value="'.$message[0]['message_wechat'].'">';
                ?>

            </div>

            <div class="magin_left">
                <span class="user_info_span">
                   Address
                </span>
                <br>
                <br>
                <?php

                echo '<input class="user_info_input" style="width:400px;" type="text" value="'.$message[0]['message_address'].'">';
                ?>

            </div>


            <div class="magin_left">
                    <span>
                        Interested city
                    </span>
                <br><br>
                <?php
                echo '<input type="text" class="form-control"  style="width: 420px;"
                       placeholder="" value="'.$message[0]['message_city'].'">';
                ?>

            </div>


            <div class="magin_left">
                    <span>
                        Want a property like
                    </span>
                <br><br>
                <?php
                echo ' <input type="text" class="form-control" style="width: 420px;"
                       placeholder="" value="'.$message[0]['message_property_like'].'">';
                ?>

            </div>

            <div class="magin_left">
                <span>
                       Want the price
                    </span>
                <br>
                <div style="float: left;width: 200px;">
                    <?php
                    echo '<div class="form-group">
                            <div class="input-group">
                                <span class="input-group-addon">￥</span>
                                <input type="text" class="form-control" style="width: 120px;" value="'.$message[0]['message_lowest'].'" placeholder="lowest">
                                <span class="input-group-addon">*10000yuan</span>
                            </div>
                        </div>';
                    ?>
                </div>
                <div style="float: left;width: 200px;margin-left: 20px;">
                    <?php
                        echo '<div class="form-group" style="margin-left: 60px;">
                                <div class="input-group">
                                    <span class="input-group-addon">￥</span>
                                    <input type="text" class="form-control" style="width: 120px;" value="'.$message[0]['message_highest'].'" placeholder="highest">
                                    <span class="input-group-addon">*10000yuan</span>
                                </div>
                            </div>';
                    ?>
                </div>
            </div>
        </div>
    </aside>

</section>

</body>
</html>

<script type="text/javascript">
    $(function () {
        $(".menu").height($('.content').height());
    });
</script>

